# -*- coding: utf-8 -*-
from django.db import models

# Create your models here.
class Message(models.Model):
    sender_id=models.CharField(max_length=30)
    receiver_id=models.CharField(max_length=30)
    receiver_time=models.DateTimeField()
    read_time=models.DateTimeField(null=True)
    readed=models.CharField(max_length=10,blank=True)
    title=models.CharField(max_length=50,blank=True)
    message=models.CharField(max_length=200,blank=True)
    status=models.CharField(max_length=20,blank=True)
    
    
    def __unicode__(self):
        return self.sender_id
    
    class Meta:
        ordering=['sender_id']
    class Admin:
        pass   